from peewee import *

database = MySQLDatabase('audi', **{'charset': 'utf8', 'sql_mode': 'PIPES_AS_CONCAT', 'use_unicode': True, 'host': '127.0.0.1', 'port': 3306, 'user': 'root', 'password': 'lc685137'})

class UnknownField(object):
    def __init__(self, *_, **__): pass

class BaseModel(Model):
    class Meta:
        database = database

class AudiDate(BaseModel):
    bread_code = CharField(column_name='breadCode')
    cid = CharField()
    colordate = CharField()
    date = CharField()
    pid = CharField()
    year = CharField()
    mid = CharField()
    sdate = CharField()
    scolordate = CharField()
    syear = CharField()
    merge_date = CharField()
    merge_sdate = CharField()

    class Meta:
        table_name = 'audi_date'
        primary_key = False

class AudiDateBanzhou(BaseModel):
    bread_code = CharField(column_name='breadCode')
    cid = CharField()
    colordate = CharField()
    date = CharField()
    pid = CharField()
    year = CharField()
    mid = CharField()
    sdate = CharField()
    scolordate = CharField()
    syear = CharField()
    merge_date = CharField()
    merge_sdate = CharField()

    class Meta:
        table_name = 'audi_date_banzhou'
        primary_key = False

